package com.zt.bus.line.model;

import com.zt.system.model.Entity;
import com.zt.util.DateUtil;
import net.sf.json.JSONObject;

import java.io.Serializable;
import java.util.Date;

public class LinePlan extends Entity implements Serializable {
    private String planId;

    private String lineId;

    private Date startDate;

    private String departTime;

    private Integer beforeMinute;

    private Integer seating;

    private String planStatus;

    public JSONObject toJSONObject() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("planId", planId);
        jsonObject.put("lineId", lineId);
        jsonObject.put("startDate", DateUtil.formatDate(startDate));
        jsonObject.put("departTime", departTime);
        jsonObject.put("beforeMinute", beforeMinute);
        jsonObject.put("seating", seating);
        jsonObject.put("planStatus", planStatus);
        return jsonObject;
    }

    private static final long serialVersionUID = 1L;

    public String getPlanId() {
        return planId;
    }

    public void setPlanId(String planId) {
        this.planId = planId;
    }

    public String getLineId() {
        return lineId;
    }

    public void setLineId(String lineId) {
        this.lineId = lineId;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public String getDepartTime() {
        return departTime;
    }

    public void setDepartTime(String departTime) {
        this.departTime = departTime;
    }

    public Integer getBeforeMinute() {
        return beforeMinute;
    }

    public void setBeforeMinute(Integer beforeMinute) {
        this.beforeMinute = beforeMinute;
    }

    public Integer getSeating() {
        return seating;
    }

    public void setSeating(Integer seating) {
        this.seating = seating;
    }

    public String getPlanStatus() {
        return planStatus;
    }

    public void setPlanStatus(String planStatus) {
        this.planStatus = planStatus;
    }
}
